package com.guoyh.bilui.textview

import android.content.Context
import android.content.res.TypedArray
import android.util.AttributeSet
import com.guoyh.bilui.R
import com.ruffian.library.widget.RFrameLayout

/**
 * @CreateDate: 2021/8/23 2:50 下午
 * @Author: guoyh
 * @Description: java类作用描述
 */
class RotateViewLayout(context: Context, attrs: AttributeSet) : RFrameLayout(context, attrs, 0) {

    var ratate = 0f

    init {
        val a: TypedArray = context.obtainStyledAttributes(attrs, R.styleable.RotateViewLayout)
        ratate = a.getFloat(R.styleable.RotateViewLayout_rotate, 0f)
        a.recycle()
    }

    override fun onFinishInflate() {
        super.onFinishInflate()
        rotation = ratate
    }
}